<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<table id="mytable" border="1">
			<thead>
				<tr>
					<th>大类</th>
					<th>小类</th>
					<th>件数</th>
					<th>单位</th>
					<th>描述</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				
			</tbody>
		</table>
		<input type="text" name="t1" id="t1" value="sfd" />
		<span id="s1">
			spn的内容
		</span>
		<script type="text/javascript">
			let table = document.getElementById("mytable");
			console.log(table.nodeName);
			console.log(table.nodeType);
			console.log(table.nodeValue);
			let t1 = document.getElementById("t1");
			console.log(t1.nodeName);
			console.log(t1.nodeType);
			console.log(t1.nodeValue);
			console.log(t1.name.nodeName);
			console.log(t1.name.nodeType);
			console.log(t1.name.nodeValue);
			let s1 = document.getElementById("s1");
			console.log(s1.nodeName);
			console.log(s1.nodeType);
			console.log(s1.nodeValue);
			var text = s1.firstChild;
			var property = s1.getAttributeNode("id");  
			console.log(s1);
			console.log(text);
			console.log(text.nodeName);
			console.log(text.nodeType);
			console.log(text.nodeValue);
			console.log(property);
			console.log(property.nodeName);
			console.log(property.nodeType);
			console.log(property.nodeValue);
		</script>
	</body>
</html>
